import {HashRouter as Router,Route,Switch,Redirect} from "react-router-dom"
import Login from "./views/login/Login";
import Main from "./views/main/Main";
import AuthRoute from "./components/AuthRoute";
function App() {
  return (
    <div className="App">
       <Router>
        <Switch>
            <Route path={"/login"} component={Login} />
            {/* <Route path={"/main"} component={Main} /> */}
            <AuthRoute path='/main' component={Main} />
            <Redirect from= "/" to={"/login"}/>
        </Switch>
       </Router>
    </div>
  );
}

export default App;
